﻿namespace DAL.DataProcess;

public class smDataProManager : IDataProManager
{
    private readonly ISystemRunStatusDataPro _systemRunStatusDataPro;

    public smDataProManager(ISystemRunStatusDataPro systemRunStatusData)
    {
        _systemRunStatusDataPro = systemRunStatusData;
    }

    public smErrorCode Initialize()
    {
        _systemRunStatusDataPro.Initialize();
        return smErrorCode.sm_ec_Success;
    }

    public smErrorCode Start()
    {
        _systemRunStatusDataPro.Start();

        return smErrorCode.sm_ec_Success;
    }

    public smErrorCode Stop()
    {
        _systemRunStatusDataPro.Stop();

        return smErrorCode.sm_ec_Success;
    }

    public ISystemRunStatusDataPro SystemRunStatusDataPro() => _systemRunStatusDataPro;
}